package se3a04.mcmapster;

import java.util.Arrays;

public class currentTour {
	
	String[] POIs;
	int currentPOI;
	int totalPOIs;
	int remainingPOIs;
	
	public void setTotalPOIs(int total){
		totalPOIs = total;
		remainingPOIs = total;
		currentPOI = 0;
	}
	public int getTotalPOIs(){
		return totalPOIs;
	}
	
	public String nextPOI(){
		currentPOI++;
		remainingPOIs--;
		if (currentPOI > totalPOIs){
			return null;
		}
		else{
			return POIs[currentPOI];
		}
	}
	
	public void clearTour(){
		totalPOIs = 0;
		currentPOI = 0;
		remainingPOIs = 0;
		Arrays.fill(POIs, null);
	}
	
}
